<%@ page import="cn.ml.web3.entity.Student" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="my" tagdir="/WEB-INF/tags" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    /*Student student = (Student) session.getAttribute("student");
    if(student == null) {
        student = new Student();
        session.setAttribute("student", student);
    }*/
    Student student2 = new Student();
    student2.setName("zhangsan");
    session.setAttribute("student", student2);
%>
<jsp:useBean id="student" class="cn.ml.web3.entity.Student" scope="session"></jsp:useBean>
<%--<jsp:setProperty name="student" property="name" value="lisi"></jsp:setProperty>
--%>

<%=student2.getName()%>
<jsp:getProperty name="student" property="name"></jsp:getProperty>
<br>
<%--自定义标签--%>
<my:myprint value="10"></my:myprint>
</body>
</html>
